regex check for numbers only js

122

get only numbers regex javascript -

var numberPattern = /\d+/g;

'something102asdfkj1948948'.match( numberPattern )

Comments

Submit
0 Comments